package com.zxydsb;

public class demo01 {
    public static void main(String[] args) {
        animal a = new animal();
        Dog d = new Dog();
        feed(d);
        System.out.println("-----------------");
        System.out.println();
    }

    public static void feed(animal a) {
        a.eat();
        a.drink();
    }
}
